projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5256764
)
inspector: increase type by right amount
author
Benjamin Otte
<otte@redhat.com>
Mon, 13 Oct 2014 04:09:35 +0000
(06:09 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Tue, 14 Oct 2014 12:03:05 +0000
(14:03 +0200)
It's a shift, so we better shift it!
gtk/inspector/statistics.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/statistics.c
b/gtk/inspector/statistics.c
index 1950301a35235a5dc1b74bcab621072051fd277e..f41567b07566ac51cbcf868e384a8f1df1edfe14 100644
(file)
--- a/
gtk/inspector/statistics.c
+++ b/
gtk/inspector/statistics.c
@@
-103,7
+103,7
@@
update_type_counts (GtkInspectorStatistics *sl)
GType type;
gpointer class;
- for (type = G_TYPE_INTERFACE; type <= G_TYPE_FUNDAMENTAL_MAX; type +=
G_TYPE_FUNDAMENTAL_SHIFT
)
+ for (type = G_TYPE_INTERFACE; type <= G_TYPE_FUNDAMENTAL_MAX; type +=
(1 << G_TYPE_FUNDAMENTAL_SHIFT)
)
{
class = g_type_class_peek (type);
if (class == NULL)